Optimal. Leaf size=101 \[ \frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-1}}{c f \left (4 m^2+8 m+3\right )}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {2743, 2742} \[ \frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-1}}{c f \left (4 m^2+8 m+3\right )}+\frac {\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2742
Rule 2743
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m} \, dx &=\frac {\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m}}{f (3+2 m)}+\frac {\int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-1-m} \, dx}{c (3+2 m)}\\ &=\frac {\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m}}{f (3+2 m)}+\frac {\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-1-m}}{c f \left (3+8 m+4 m^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.04, size = 136, normalized size = 1.35 \[ -\frac {2^{-m} \cos \left (\frac {1}{2} \left (-e-f x+\frac {\pi }{2}\right )\right ) \sin ^{-2 m-3}\left (\frac {1}{2} \left (-e-f x+\frac {\pi }{2}\right )\right ) (\sin (e+f x)-2 (m+1)) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2} \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^{-2 (-m-2)}}{f \left (8 m^2+16 m+6\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 72, normalized size = 0.71 \[ \frac {{\left (2 \, {\left (m + 1\right )} \cos \left (f x + e\right ) - \cos \left (f x + e\right ) \sin \left (f x + e\right )\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 2}}{4 \, f m^{2} + 8 \, f m + 3 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.79, size = 0, normalized size = 0.00 \[ \int \left (a +a \sin \left (f x +e \right )\right )^{m} \left (c -c \sin \left (f x +e \right )\right )^{-2-m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.88, size = 111, normalized size = 1.10 \[ -\frac {{\left (a\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^m\,\left (\sin \left (2\,e+2\,f\,x\right )+8\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+4\,m\,\left (2\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-1\right )-4\right )}{c^2\,f\,{\left (-c\,\left (\sin \left (e+f\,x\right )-1\right )\right )}^m\,\left (4\,m^2+8\,m+3\right )\,\left (2\,{\sin \left (e+f\,x\right )}^2-4\,\sin \left (e+f\,x\right )+2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________